import 'package:flutter_taotaoshipin/generated/json/base/json_field.dart';
import 'package:flutter_taotaoshipin/generated/json/drama_ranking_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class DramaRankingEntity {

	@JSONField(name: "drama_id")
	int? dramaId;
	@JSONField(name: "drama_name")
	String? dramaName;
	String? img;
	int? sort;
	String? desc;
	@JSONField(name: "all_ep")
	int? allEp;
	int? ctime;
  
  DramaRankingEntity();

  factory DramaRankingEntity.fromJson(Map<String, dynamic> json) => $DramaRankingEntityFromJson(json);

  Map<String, dynamic> toJson() => $DramaRankingEntityToJson(this);

  DramaRankingEntity copyWith({int? dramaId, String? dramaName, String? img, int? sort, String? desc, int? allEp, int? ctime}) {
      return DramaRankingEntity()..dramaId= dramaId ?? this.dramaId
			..dramaName= dramaName ?? this.dramaName
			..img= img ?? this.img
			..sort= sort ?? this.sort
			..desc= desc ?? this.desc
			..allEp= allEp ?? this.allEp
			..ctime= ctime ?? this.ctime;
  }
    
  @override
  String toString() {
    return jsonEncode(this);
  }
}